Pod::Spec.new do |s|
  s.name             = 'TestDemo'
  s.version          = '0.1.0'
  s.summary          = 'A short description of TestDemo.'
  s.description      = <<-DESC
                        测试源码,二进制平滑切换
                       DESC

  s.homepage         = 'https://gitee.com/Holink521/TestDemo'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { 'hulinhu' => 'hulinhu@weidian.com' }
  s.source           = { :git => 'https://gitee.com/Holink521/TestDemo.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  s.ios.deployment_target = '8.0'
  
  s.resource_bundles = {
        'TestDemo' => ['TestDemo/Assets/*.{png,jpeg}']
   }
  # s.frameworks = 'UIKit', 'MapKit'

    if ENV['SOURCECODE'] # 代码引入
        puts '-------------------------------------------------------------------'
        puts 'Notice:TestDemo is source now'
        puts '-------------------------------------------------------------------'
        s.source_files = 'TestDemo/Classes/**/*.{h,m}'
        s.public_header_files = 'TestDemo/Classes/**/*.h'
    else  # Framework引入
        puts '-------------------------------------------------------------------'
        puts 'Notice:TestDemo is framework now'
        puts '-------------------------------------------------------------------'
       s.source_files = 'Example/TestDemoLibrary/Products/Binary-universal/include/**'
       s.public_header_files = 'Example/TestDemoLibrary/Products/Binary-universal/include/*.h'
       s.ios.vendored_libraries = 'Example/TestDemoLibrary/Products/Binary-universal/libTestDemoLibrary.a'

    end
    s.dependency 'YYModel'

end
